<?php 


global $_W,$_GPC;

$sql = "SELECT * FROM ".tablename('imeepos_runner3_moneylog')." WHERE uniacid = :uniacid ORDER BY create_time DESC ";
$params = array(':uniacid'=>$_W['uniacid']);
$list = pdo_fetchall($sql,$params);
load()->model('mc');

foreach ($list as &$li){
	$sql = "SELECT * FROM ".tablename('imeepos_runner3_member')." WHERE uniacid = :uniacid AND openid = :openid ";
	$params = array(':uniacid'=>$_W['uniacid'],':openid'=>$li['openid']);
	$li['user'] = pdo_fetch($sql,$params);
	$li['create_time'] = date('Y-m-d',$li['create_time']);
}

include $this->template('web/task/moneylog');